/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.Inheritance.Imp;

import za.ac.cput.Inheritance.Rectangle;

/**
 *
 * @author Avis
 */
public class Box extends Rectangle
{

    
  private int height;
  
  public Box()
  {     
  }
  
   public Box(int leng, int bre, int heig)
   {
       super(leng,bre);
       height = heig;
   }
   public int getHeight()
   {
        return height;
   }
    public void setHeight(int height)
    {
        this.height = height;
    }
   public int areaBox()
   {
       return super.area()*height;
   }
}

